package com.tansun.easycare.rule.table.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 决策表信息/一维表索引/赋值索引/排除项详情Entity
 *
 * @author lixs
 * @version 2017-03-01
 */
public class RuleDecisiontableDetail extends RuleBaseEntity<RuleDecisiontableDetail> {

    private static final long serialVersionUID = 1L;
    private String version;        // 版本信息
    private String modelType;        // 模型类型
    private String manageId;        // 规则管理ID
    private String projectCode;        // 规则库编码
    private Integer rowNo;        // 行编号
    private Integer columnNo;        // 列编号
    private String tabId;        // 运动轨迹落点标识
    private String className;        // 数据集英文名
    private String namecn;        // 变量中文名
    private String nameen;        // 变量英文名
    private String contentType;        // 规则参数类型
    private String symbol;        // 操作符（默认为IN）
    private String lowerOpt;        // lower_opt
    private String upperOpt;        // upper_opt
    private String formulaLabel;        // formula_label
    private String formula;        // formula
    private String dataType;        // 变量数据类型
    private String defaultValue;        // 变量默认值
    private String domain;        // 码值域ID
    private String pattern;
    private String position;        // 集合变量下标
    private String isDerives;        // 是否衍生变量
    private String controlValue;        // control_value
    private String collection;
    private String isfuncparam;
    
    public RuleDecisiontableDetail() {
        super();
    }

    public RuleDecisiontableDetail(String id) {
        super(id);
    }

    @Length(min = 0, max = 10, message = "版本信息长度必须介于 0 和 10 之间")
    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    @Length(min = 0, max = 50, message = "模型类型长度必须介于 0 和 50 之间")
    public String getModelType() {
        return modelType;
    }

    public void setModelType(String modelType) {
        this.modelType = modelType;
    }

    @Length(min = 1, max = 64, message = "规则管理ID长度必须介于 1 和 64 之间")
    public String getManageId() {
        return manageId;
    }

    public void setManageId(String manageId) {
        this.manageId = manageId;
    }

    @Length(min = 1, max = 50, message = "规则库编码长度必须介于 1 和 50 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    @Length(min = 0, max = 11, message = "行编号长度必须介于 0 和 11 之间")
    public Integer getRowNo() {
        return rowNo;
    }

    public void setRowNo(Integer rowNo) {
        this.rowNo = rowNo;
    }

    @Length(min = 0, max = 11, message = "列编号长度必须介于 0 和 11 之间")
    public Integer getColumnNo() {
        return columnNo;
    }

    public void setColumnNo(Integer columnNo) {
        this.columnNo = columnNo;
    }

    @Length(min = 0, max = 50, message = "运动轨迹落点标识长度必须介于 0 和 50 之间")
    public String getTabId() {
        return tabId;
    }

    public void setTabId(String tabId) {
        this.tabId = tabId;
    }

    @Length(min = 1, max = 50, message = "数据集英文名长度必须介于 1 和 50 之间")
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Length(min = 1, max = 50, message = "变量中文名长度必须介于 1 和 50 之间")
    public String getNamecn() {
        return namecn;
    }

    public void setNamecn(String namecn) {
        this.namecn = namecn;
    }

    @Length(min = 1, max = 50, message = "变量英文名长度必须介于 1 和 50 之间")
    public String getNameen() {
        return nameen;
    }

    public void setNameen(String nameen) {
        this.nameen = nameen;
    }

    @Length(min = 0, max = 50, message = "规则参数类型长度必须介于 0 和 50 之间")
    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    @Length(min = 0, max = 10, message = "操作符（默认为IN）长度必须介于 0 和 10 之间")
    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    @Length(min = 0, max = 50, message = "lower_opt长度必须介于 0 和 50 之间")
    public String getLowerOpt() {
        return lowerOpt;
    }

    public void setLowerOpt(String lowerOpt) {
        this.lowerOpt = lowerOpt;
    }

    @Length(min = 0, max = 50, message = "upper_opt长度必须介于 0 和 50 之间")
    public String getUpperOpt() {
        return upperOpt;
    }

    public void setUpperOpt(String upperOpt) {
        this.upperOpt = upperOpt;
    }

    @Length(min = 0, max = 200, message = "formula_label长度必须介于 0 和 200 之间")
    public String getFormulaLabel() {
        return formulaLabel;
    }

    public void setFormulaLabel(String formulaLabel) {
        this.formulaLabel = formulaLabel;
    }

    @Length(min = 0, max = 200, message = "formula长度必须介于 0 和 200 之间")
    public String getFormula() {
        return formula;
    }

    public void setFormula(String formula) {
        this.formula = formula;
    }

    @Length(min = 1, max = 50, message = "变量数据类型长度必须介于 1 和 50 之间")
    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    @Length(min = 1, max = 50, message = "变量默认值长度必须介于 1 和 50 之间")
    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    @Length(min = 1, max = 50, message = "码值域ID长度必须介于 1 和 50 之间")
    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    @Length(min = 1, max = 20, message = "集合变量下标长度必须介于 1 和 20 之间")
    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    @Length(min = 0, max = 10, message = "是否衍生变量长度必须介于 0 和 10 之间")
    public String getIsDerives() {
        return isDerives;
    }

    public void setIsDerives(String isDerives) {
        this.isDerives = isDerives;
    }

    @Length(min = 0, max = 100, message = "control_value长度必须介于 0 和 100 之间")
    public String getControlValue() {
        return controlValue;
    }

    public void setControlValue(String controlValue) {
        this.controlValue = controlValue;
    }

    public String getPattern() {
        return pattern;
    }

    public void setPattern(String pattern) {
        this.pattern = pattern;
    }

    public String getCollection() {
        return collection;
    }

    public void setCollection(String collection) {
        this.collection = collection;
    }

	public String getIsfuncparam() {
		return isfuncparam;
	}

	public void setIsfuncparam(String isfuncparam) {
		this.isfuncparam = isfuncparam;
	}
}